package com.aletto.general_store.ui.adapters;

import android.graphics.Color;

import com.aletto.general_store.R;
import com.aletto.general_store.data.model.Address;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import java.util.ArrayList;
import java.util.Arrays;

import androidx.annotation.NonNull;

public class ChainNodesAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    public ChainNodesAdapter() {
        super(R.layout.item_chain_nodes, new ArrayList<>(Arrays.asList(null, null)));
    }

    @Override
    protected void convert(@NonNull BaseViewHolder holder, String s) {
        holder.setText(R.id.tv_node_name, "BSC-Binance9")
                .setText(R.id.tv_net_speed, "238 ms")
                .setText(R.id.tv_block_height, "区块高度 35454690")
                .setBackgroundColor(R.id.net_speed_view, Color.RED);
    }

}
